POV-Ray : Newsgroups : povray.programming : SIMD implementation of dot-product in POV-Ray??? : SIMD implementation of dot-product in POV-Ray??? Server Time
28 Jul 2024 18:25:39 EDT (-0400)
  SIMD implementation of dot-product in POV-Ray???  
From: Goran Begicevic
Date: 25 Nov 1999 09:44:21
Message: <383D4B2A.B376001E@tidax.se>
Hey, anybody considered using SIMD instructions embeeded in
new-generations of processors??
As far as i know, MMX is worthless, but there are some neat SIMD
features in new P-III processors that could help.

Now, one of things that costs time to compute is dot-product. And dot
product is something that is being used *a lot* in raytracing , to say
at least. 

As far as i remember from peering into POV-Ray's source code, it's using
"double" floating-point numbers. That's something like ~90 bits of
precision.

If we could get by using ordinary 32-bit "float" precision, we could
take advantage of SIMD-capabilities of P-III processor and speed up
dot-product calculations substantially.

Now did anyone tryed this trick before??

As soon as i get some time , i'll try to convert POV-Ray dot-product
algorithm to SIMD and take a look at the results. It's hard to say how
it will look like , but my guess is that we don't need additional
precision of "double" variable too often.

Any input is welcome!


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.